<!-- catalog/templates/catalog/author_list.html -->
{% extends "base_generic.html" %}

{% block content %}
  <div class="card">
    <h1>作者列表</h1>
    {% if author_list %}
      <ul>
        {% for author in author_list %}
          <li style="margin-bottom:10px;">
            <a href="{{ author.get_absolute_url }}" class="btn btn-main">{{ author.last_name }}{{ author.first_name }}</a>
          </li>
        {% endfor %}
      </ul>
    {% else %}
      <p>当前没有作者。</p>
    {% endif %}
  </div>
{% endblock %}